<admintpl file="header"/>
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a>商户详情</a></li>
	</ul>
	<php>$status=array("0"=>'禁用',"1"=>'正常',"2"=>'未验证手机','3'=>'未选择类型','4'=>'未传资质','5'=>'未装修');</php>
	<php>$type=array("1"=>'商户',"2"=>'技师');</php>
	<php>$visit=array("1"=>'上门',"2"=>'不上门');</php>
	<div class="div_to_table">
		<div><span class="div_to_table_bold">商户名</span><span>{$business.name}</span></div>
		<div><span class="div_to_table_bold">公司名</span><span>{$business.company}</span></div>
		<div><span class="div_to_table_bold">创建时间</span><span>{$business.create_time|date="Y-m-d",###}</span></div>
		<div><span class="div_to_table_bold">类型</span><span>{$type[$business['type']]}</span></div>
		<div><span class="div_to_table_bold">状态</span><span>{$status[$business['status']]}</span></div>
		<div><span class="div_to_table_bold">经营范围</span><span>{$business.sname}</span></div>
		<div><span class="div_to_table_bold">收藏数</span><span>{$business.collect_num}</span></div>
		<div><span class="div_to_table_bold">访问数</span><span>{$business.visit_num}</span></div>
		<div><span class="div_to_table_bold">评分</span><span>{$business.points}</span></div>
		<div><span class="div_to_table_bold">电话</span><span>{$business.phone}</span></div>
		<div><span class="div_to_table_bold">地址</span><span>{$business.address}</span></div>
		<div><span class="div_to_table_bold">擅长车型</span><span>{$business.good_at}</span></div>
		<div><span class="div_to_table_bold">面积（平米）</span><span>{$business.acreage}</span></div>
		<div><span class="div_to_table_bold">人员数量</span><span>{$business.people_number}</span></div>
		<div><span class="div_to_table_bold">从业年数</span><span>{$business.years}</span></div>
		<div><span class="div_to_table_bold">是否上门</span><span>{$visit[$business['visit']]}</span></div>
		<div style="height: 120px" ><span class="div_to_table_bold" style="height: 120px">logo</span><span><php>if(!empty($business['logo'])){echo '<img src="'.sp_get_image_preview_url($business['logo']).'" style="width: 180px;height: 120px" />';}</php></span></div>
		<div style="height: 120px" ><span class="div_to_table_bold" style="height: 120px">商户二维码</span><span><php>if(!empty($business['erweima'])){echo '<img src="'.sp_get_image_preview_url($business['erweima']).'" style="width: 180px;height: 120px" />';}</php></span></div>
		<div style="height: 200px;overflow: hidden"><span class="div_to_table_bold" style="height: 200px">优势</span><span >{$business.advantage}</span></div>
        <foreach name="businessSlides" item="businessSlide">
            <br/>
            <div style="height: 120px" ><span class="div_to_table_bold" style="height: 120px">轮播图</span><span><php>if(!empty($businessSlide['image'])){echo '<img src="'.sp_get_image_preview_url($businessSlide['image']).'" style="width: 180px;height: 120px" />';}</php></span></div>
        </foreach>
        <foreach name="businessTech" item="tech">
            <br/>
            <div><span class="div_to_table_bold">技师名称</span><span>{$tech.name}</span></div>
            <div style="height: 120px" ><span class="div_to_table_bold" style="height: 120px">logo</span><span><php>if(!empty($tech['avatar'])){echo '<img src="'.sp_get_image_preview_url($tech['avatar']).'" style="width: 180px;height: 120px" />';}</php></span></div>
        </foreach>
	</div>
	<div class="form-actions" style="padding-left: 540px">
		<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
	</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
